export namespace SystemSpace {
  // 生产订单 分页查询
  export interface stopPageQuery {
    pageIndex: number
    pageSize: number
    factoryId?: string
  }
  export interface stopPage {
    id: number
    factoryId: number
    lineId: number
    lineName: string
    code: string
    prodName: string
    personCharge: string
    version: string
    materialNo: string
    orderCnt: number
    produceCnt: number
    powerCnt: number
    cleanLevel: string
    updateBy: string
    updateTime: string
  }

  export interface dailyList {
    id: number
    factoryId: number
    lineId: number
    lineName: string
    orderId: number
    orderCode: string
    produceDate: string
    produceCnt: number
    powerCnt: number
    powerIntensity: number
    prodCode: string
    prodName: string
    groupName: string
    updateBy: string
    updateTime: string
  }
  // 生产设备 新增/编辑
  export interface SaveDevice {
    id?: number
    factoryId?: number
    lineId?: number
    code: string
    name: string
    deviceType: number
    energyGrade?: number
    ratedPower: string
    location: string
    modelNumber: string
    manufacturer: string
    productionDate: string
    putrunDate: string
    personCharge: string
    remark: string
  }
  export interface ModifyDevice {
    id: number
    factoryId: number
    lineId: number
    code: string
    name: string
    deviceType: number
    runState?: number
    energyGrade: number
    ratedPower: string
    location: string
    modelNumber: string
    manufacturer: string
    productionDate: string
    putrunDate: string
    personCharge: string
    remark: string
  }
  // 生产设备 列表
  export interface DeviceListQuery {
    factoryId?: number
    lineId?: number
    energyType?: string
  }
  export interface DeviceList {
    id: number
    code: string
    name: string
  }
  // 生产设备 列表
  export interface DeviceListEnergyQuery {
    factoryId?: number
    lineId?: number
    energyType?: string
  }
  export interface DeviceListEnergy {
    id: number
    code: string
    name: string
  }
  // 生产设备 详情
  export interface dailyListDetail {
    id: number
    factoryId: number
    lineId: number
    code: string
    name: string
    deviceType: number
    runState: number
    energyGrade: number
    ratedPower: string
    location: string
    modelNumber: string
    manufacturer: string
    productionDate: string
    putrunDate: string
    personCharge: string
    remark: string
    createBy: string
    createTime: string
    updateBy: string
    updateTime: string
  }
  export interface cleanList {
    id: number
    dailyId: number
    cleanLevel: string
    cleanCnt: number
    cleanTimes: number
    personCharge: string
    updateBy: string
    updateTime: string
  }
  // 计量设备 分页查询
  export interface MeterPageQuery {
    pageIndex: number
    pageSize: number
    factoryId?: number
    lineId?: number
    gatewayCode?: string
    code?: string
    name?: string
    meterType?: number
    energyType?: string
    modelNumber?: string
  }
  export interface MeterPage {
    id: number
    factoryId: number
    lineId: number
    gatewayCode: string
    code: string
    name: string
    meterType: number
    energyType: string
    commsMode: number
    location: string
    modelNumber: string
    manufacturer: string
    productionDate: string
    putrunDate: string
    personCharge: string
    rangeCurrentStop: number
    rangeCurrentWait: number
    rangeCurrentUpper: number
    remark: string
    createBy: string
    createTime: string
    updateBy: string
    updateTime: string
  }
  // 计量设备 新增/编辑
  export interface SaveMeter {
    id?: number
    factoryId?: number
    lineId?: number
    deviceId?: number
    gatewayCode?: string
    code?: string
    name: string
    meterType?: number
    energyType?: string
    commsMode?: number
    location: string
    modelNumber: string
    manufacturer: string
    productionDate: string
    putrunDate: string
    personCharge: string
    rangeCurrentStop?: number
    rangeCurrentWait?: number
    rangeCurrentUpper?: number
    remark: string
  }
  // 计量设备 列表
  export interface MeterList {
    id: number
    name: string
  }
  // 计量设备 详情
  export interface MeterDetail {
    id: number
    factoryId: number
    lineId: number
    gatewayCode: string
    code: string
    name: string
    meterType: number
    energyType: string
    commsMode: number
    location: string
    modelNumber: string
    manufacturer: string
    productionDate: string
    putrunDate: string
    personCharge: string
    rangeCurrentStop: number
    rangeCurrentWait: number
    rangeCurrentUpper: number
    remark: string
    createBy: string
    createTime: string
    updateBy: string
    updateTime: string
    deviceId: number
  }
  // 计量点位 分页查询
  export interface MeterPointPageQuery {
    pageIndex: number
    pageSize: number
    meterId: number
    name?: string
    mark?: string
  }
  export interface MeterPointPage {
    id: number
    meterId: number
    name: string
    mark: string
    unit: string
    remark: string
    createBy: string
    createTime: string
  }
  // 计量点位 新增
  export interface AddMeterPoint {
    meterId: number
    name: string
    mark: string
    unit: string
    remark: string
  }
  // 网关设备 分页查询
  export interface GatewayPageQuery {
    pageIndex: number
    pageSize: number
    code?: string
    name?: string
    ipAdd?: string
    location?: string
  }
  export interface GatewayPage {
    code: string
    createBy: string
    createTime: string
    delFlag: boolean
    id: number
    ipAdd: string
    location: string
    manufacturer: string
    modelNumber: string
    name: string
    networkProtocol: number
    personCharge: string
    productionDate: string
    putrunDate: string
    remark: string
    state: number
    updateBy: string
    updateTime: string
  }
  //网关设备 新增/编辑
  export interface SaveGateway {
    id?: number
    code?: string
    name: string
    ipAdd: string
    location: string
    modelNumber: string
    manufacturer: string
    productionDate: string
    putrunDate: string
    personCharge: string
    remark: string
  }
  // 网关设备 列表
  export interface GatewayList {
    id: number
    code: string
    name: string
  }
  // 网关设备 详情
  export interface GatewayDetail {
    id: number
    code: string
    name: string
    ipAdd: string
    location: string
    modelNumber: string
    manufacturer: string
    productionDate: string
    putrunDate: string
    personCharge: string
    remark: string
    createBy: string
    createTime: string
    updateBy: string
    updateTime: string
  }
}
